home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1995 #5 & #6
/
Amiga Plus CD - 1995 - No. 5 and 6.iso
/
pd
/
grafik
/
lightwave
/
lightwave-jan95
/
000337_owner-lightwave-l _Fri Jan 27 21:35:17 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-02-04
|
3KB
Return-Path: <owner-lightwave-l>
Received: by mail3.netcom.com (8.6.9/Netcom)
id RAA25504; Fri, 27 Jan 1995 17:53:47 -0800
Received: from mv.mv.com by mail3.netcom.com (8.6.9/Netcom)
id RAA25444; Fri, 27 Jan 1995 17:53:26 -0800
Received: by mv.mv.com (8.6.9/mv(b)/mem-940616)
id UAA19026 for lightwave-l@netcom.com; Fri, 27 Jan 1995 20:49:24 -0500
Received: by fusion.mv.com (V1.16/Amiga)
id AA0036h; Fri, 27 Jan 95 16:11:16 EST
Date: Fri, 27 Jan 95 16:11:16 EST
Message-Id: <9501272111.AA0036g@fusion.mv.com>
Message-Id: <201cdc21.cb74a-mark@fusion.mv.com>
In-Reply-To: <9501272119.aa20180@magna.com.au>
(from Brett Feeney <brettf@magna.com.au>)
(at Fri, 27 Jan 95 21:19:02 PST)
X-Mailer: //\\miga Electronic Mail (AmiElm 4.159)
From: mark@fusion.MV.COM (Mark Thompson)
To: lightwave-l@netcom.com
Subject: Re: alpha's
Sender: owner-lightwave-l@netcom.com
Precedence: bulk
Brett Feeney <brettf@magna.com.au> writes:
> is there a way to produce an alpha channel for lensflare,
> could sumone explain the theory behind it to me .
> thanx in advance to any help recieved
You should really check out my article on the alpha channel in the
July issue of LWPro. I covered this as well as many other issues.
Lens flares are an additive effect, ie. adding them to some image should
not in any way diminish the intensity contribution of any pixel. The
standard formula for combining two images using alpha is: PixNew = [PixFG *
alpha] + [PixBG * (1 - alpha)] where alpha is scaled to a value from 0 to
1. As you can see, with a translucent object (say alpha=0.5), the
background will be decreased in value by 50% to arrive at the new pixel
value. Therefore, what you really want to do is render your lens flares
over a black background, and then when you composite them, simply do an
absolute add of flare to the background (or using the format of the
equation above: PixNew = PixFG + PixBG). Once your flares are rendered over
a black background, you simply load the image(s) into the forground in
LW and composite them over your other graphics using a completely black
image for alpha (or using the alpha that was generated by LW when the
flares were rendered, which will be all black unless there were objects
other than lights in the scene). The other option is to composite the
flares externally in something like ImageFX. In this case, you would
use the "absolute add" compositing mode for the flares.
For more details, see the LWPro article.
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
* Mark Thompson (603) 424-1829 *
* Fusion Films Inc. mark@fusion.mv.com *
* Radiant Image Productions *
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~